Release 10.1A: OpenEdge Development:
Progress 4GL Reference


GUID function

Converts a universally unique identifier (UUID) value into a globally unique identifier (GUID) value. This function returns a GUID as a 36-character string value consisting of 32 hexadecimal digits (0 through 9 and A through F) and 4 hyphens formatted as follows (where X is a hexadecimal digit): XXXXXXXX—XXXX—XXXX—XXXX—XXXXXXXXXXXX

Syntax

GUID( [ UUID ] ) 

UUID

An optional 16-byte raw UUID value to be converted. If the specified UUID is not exactly 16 bytes in length, Progress returns the Unknown value (?). If not specified, Progress generates a UUID and then converts it into a GUID.

Example

The following code fragment illustrates how to use the GUID function:

DEFINE VARIABLE MyUUID as RAW. 
DEFINE VARIABLE vGUID as CHARACTER. 
MyUUID = GENERATE-UUID. 
vGUID = GUID(MyUUID). 

See also

GENERATE-UUID function


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095